import request from "../utils/request";
const api_name = "/comment";
export default {
    // 获取分页评论数据
    getList(page, limit, courseid) {
        return request({
            url: `http://39.98.120.230:8080/api/comment/list/${page}/${limit}/${courseid}`,
            method: "get",
        });
    },
    // 添加评论
    addComment(comment){
        return request({
            url:`http://39.98.120.230:8080/api/comment`,
            method:'post',
            data:comment
        })
    }
};
